class CreatePayments < ActiveRecord::Migration
  def change
    create_table :payments do |t|
      t.integer :invoice_id
      t.float :amount
      t.float :change
      t.integer :payment_method_id
      t.integer :card_number
      t.integer :card_provider_id
      t.string :card_transaction_ref
      t.integer :created_by
      t.integer :updated_by

      t.timestamps
    end
  end
end
